<?php

namespace Laoha\Core\Sets;

use Encore\Admin\Widgets\Form;

class Site extends Form
{
    //use SetTrait;

    public $name = 'site';
    public $title = '网站';

    /**
     * Build a form here.
     */
    public function form()
    {        
		$this->data = require(config_path('sets/'.$this->name.'.php'));
		$this->action(admin_base_path('laoha/set').'?active='.$this->name);		

        //以下为实际设置区
        $this->text('name')->rules('required');
        $this->email('email')->rules('email');
        $this->datetime('created_at');
    }


}
